﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PingPong
{
    public class Player
    {
        //Constructor, takes the player's name as parametter 
        public Player(string namePl)
        {
            Name = namePl;
        }
        //Name of the current player, will be asked as parametter when starting the game
         
        //Size of the player's pad.
        // TODO : change the size of the pad depending of the difficulty the player choose
      
        static int padSize = 10;
        
        string playerName;
        public String Name
        {
            get
            {
                return this.playerName;
            }
            set
            {
                this.playerName = value;
            }
        }
        
        int result;
        public int Result
        {
            get
            {
                return this.result;
            }
            set
            {
                this.result = value;
            }
        }
        //Create the pad
      
        Pad playerPad = new Pad(padSize);

        public Pad PlayerPad
        {
            get
            {
                return this.playerPad;
            }
            //No need to have a setter
        }
    }
}
